#!/bin/bash

factorial=$[ $1 * $2 ]
for (( number = 10; number <= 10; number++ ))
do
	factorial=$[ $factorial * $number ]
done
echo The factorial is $factorial

echo ${12}

echo $0

echo "第三个参数是 $3"

name=$(basename $0)
if [ $name = "addem" ]
then
	total=$[ $1 + $2 ]
elif [ $name = "multem" ]
then
	total=$[ $1 * $2 ]
fi
echo "total is $total"


cp demo.sh addem
chmod u+x addem

ln -s demo.sh multem

ls -l *em
